package c.e.a.b.e.c;

import com.pgl.sys.ces.out.ISdkLite;
import java.lang.reflect.Field;
import java.nio.Buffer;
import java.security.AccessController;
import sun.misc.Unsafe;

/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public final class l7 {
    public static final Unsafe a;
    public static final Class<?> b = q3.a;
    public static final boolean c;
    public static final boolean d;
    public static final c e;
    public static final boolean f;
    public static final boolean g;
    public static final long h = ((long) h(byte[].class));
    public static final boolean i;

    /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
    public static abstract class c {
        public Unsafe a;

        public c(Unsafe unsafe) {
            this.a = unsafe;
        }

        public abstract byte a(Object obj, long j);

        public abstract void b(Object obj, long j, byte b);

        public abstract void c(Object obj, long j, double d);

        public abstract void d(Object obj, long j, float f);

        public final void e(Object obj, long j, int i) {
            this.a.putInt(obj, j, i);
        }

        public final void f(Object obj, long j, long j2) {
            this.a.putLong(obj, j, j2);
        }

        public abstract void g(Object obj, long j, boolean z);

        public abstract boolean h(Object obj, long j);

        public abstract float i(Object obj, long j);

        public abstract double j(Object obj, long j);

        public final int k(Object obj, long j) {
            return this.a.getInt(obj, j);
        }

        public final long l(Object obj, long j) {
            return this.a.getLong(obj, j);
        }
    }

    /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
    public static final class a extends c {
        public a(Unsafe unsafe) {
            super(unsafe);
        }

        public final byte a(Object obj, long j) {
            if (l7.i) {
                return l7.t(obj, j);
            }
            return l7.u(obj, j);
        }

        public final void b(Object obj, long j, byte b) {
            if (l7.i) {
                l7.l(obj, j, b);
            } else {
                l7.o(obj, j, b);
            }
        }

        public final void c(Object obj, long j, double d) {
            f(obj, j, Double.doubleToLongBits(d));
        }

        public final void d(Object obj, long j, float f) {
            e(obj, j, Float.floatToIntBits(f));
        }

        public final void g(Object obj, long j, boolean z) {
            if (l7.i) {
                l7.l(obj, j, (byte) z);
            } else {
                l7.o(obj, j, (byte) z);
            }
        }

        public final boolean h(Object obj, long j) {
            boolean z = false;
            if (l7.i) {
                if (l7.t(obj, j) != (byte) 0) {
                    z = true;
                }
                return z;
            }
            if (l7.u(obj, j) != (byte) 0) {
                z = true;
            }
            return z;
        }

        public final float i(Object obj, long j) {
            return Float.intBitsToFloat(k(obj, j));
        }

        public final double j(Object obj, long j) {
            return Double.longBitsToDouble(l(obj, j));
        }
    }

    /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
    public static final class b extends c {
        public b(Unsafe unsafe) {
            super(unsafe);
        }

        public final byte a(Object obj, long j) {
            if (l7.i) {
                return l7.t(obj, j);
            }
            return l7.u(obj, j);
        }

        public final void b(Object obj, long j, byte b) {
            if (l7.i) {
                l7.l(obj, j, b);
            } else {
                l7.o(obj, j, b);
            }
        }

        public final void c(Object obj, long j, double d) {
            f(obj, j, Double.doubleToLongBits(d));
        }

        public final void d(Object obj, long j, float f) {
            e(obj, j, Float.floatToIntBits(f));
        }

        public final void g(Object obj, long j, boolean z) {
            if (l7.i) {
                l7.l(obj, j, (byte) z);
            } else {
                l7.o(obj, j, (byte) z);
            }
        }

        public final boolean h(Object obj, long j) {
            boolean z = false;
            if (l7.i) {
                if (l7.t(obj, j) != (byte) 0) {
                    z = true;
                }
                return z;
            }
            if (l7.u(obj, j) != (byte) 0) {
                z = true;
            }
            return z;
        }

        public final float i(Object obj, long j) {
            return Float.intBitsToFloat(k(obj, j));
        }

        public final double j(Object obj, long j) {
            return Double.longBitsToDouble(l(obj, j));
        }
    }

    /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
    public static final class d extends c {
        public d(Unsafe unsafe) {
            super(unsafe);
        }

        public final byte a(Object obj, long j) {
            return this.a.getByte(obj, j);
        }

        public final void b(Object obj, long j, byte b) {
            this.a.putByte(obj, j, b);
        }

        public final void c(Object obj, long j, double d) {
            this.a.putDouble(obj, j, d);
        }

        public final void d(Object obj, long j, float f) {
            this.a.putFloat(obj, j, f);
        }

        public final void g(Object obj, long j, boolean z) {
            this.a.putBoolean(obj, j, z);
        }

        public final boolean h(Object obj, long j) {
            return this.a.getBoolean(obj, j);
        }

        public final float i(Object obj, long j) {
            return this.a.getFloat(obj, j);
        }

        public final double j(Object obj, long j) {
            return this.a.getDouble(obj, j);
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:69:0x0294  */
    /* JADX WARNING: Removed duplicated region for block: B:74:0x02a7  */
    /* JADX WARNING: Removed duplicated region for block: B:38:0x0140 A:{SYNTHETIC, Splitter:B:38:0x0140} */
    /* JADX WARNING: Removed duplicated region for block: B:36:0x013c  */
    /* JADX WARNING: Removed duplicated region for block: B:69:0x0294  */
    /* JADX WARNING: Removed duplicated region for block: B:74:0x02a7  */
    /* JADX WARNING: Removed duplicated region for block: B:69:0x0294  */
    /* JADX WARNING: Removed duplicated region for block: B:74:0x02a7  */
    /* JADX WARNING: Removed duplicated region for block: B:36:0x013c  */
    /* JADX WARNING: Removed duplicated region for block: B:38:0x0140 A:{SYNTHETIC, Splitter:B:38:0x0140} */
    /* JADX WARNING: Removed duplicated region for block: B:69:0x0294  */
    /* JADX WARNING: Removed duplicated region for block: B:74:0x02a7  */
    /* JADX WARNING: Removed duplicated region for block: B:38:0x0140 A:{SYNTHETIC, Splitter:B:38:0x0140} */
    /* JADX WARNING: Removed duplicated region for block: B:36:0x013c  */
    /* JADX WARNING: Removed duplicated region for block: B:69:0x0294  */
    /* JADX WARNING: Removed duplicated region for block: B:74:0x02a7  */
    /* JADX WARNING: Removed duplicated region for block: B:69:0x0294  */
    /* JADX WARNING: Removed duplicated region for block: B:74:0x02a7  */
    static {
        /*
        r1 = double[].class;
        r2 = float[].class;
        r3 = long[].class;
        r4 = int[].class;
        r5 = boolean[].class;
        r6 = c.e.a.b.e.c.l7.class;
        r7 = java.lang.Object.class;
        r0 = k();
        a = r0;
        r8 = c.e.a.b.e.c.q3.a;
        b = r8;
        r8 = java.lang.Long.TYPE;
        r9 = p(r8);
        c = r9;
        r10 = java.lang.Integer.TYPE;
        r11 = p(r10);
        d = r11;
        r12 = 0;
        if (r0 != 0) goto L_0x002c;
    L_0x002b:
        goto L_0x0047;
    L_0x002c:
        r13 = c.e.a.b.e.c.q3.a();
        if (r13 == 0) goto L_0x0042;
    L_0x0032:
        if (r9 == 0) goto L_0x003a;
    L_0x0034:
        r12 = new c.e.a.b.e.c.l7$a;
        r12.m5626init(r0);
        goto L_0x0047;
    L_0x003a:
        if (r11 == 0) goto L_0x0047;
    L_0x003c:
        r12 = new c.e.a.b.e.c.l7$b;
        r12.m5627init(r0);
        goto L_0x0047;
    L_0x0042:
        r12 = new c.e.a.b.e.c.l7$d;
        r12.m5628init(r0);
    L_0x0047:
        e = r12;
        r9 = "copyMemory";
        r12 = "putLong";
        r13 = "putInt";
        r14 = "getInt";
        r15 = "putByte";
        r11 = "getByte";
        r16 = r1;
        r1 = "com.google.protobuf.UnsafeUtil";
        r17 = r2;
        r2 = "platform method missing - proto runtime falling back to safer methods: ";
        r18 = r3;
        r3 = "objectFieldOffset";
        r19 = r4;
        r4 = "getLong";
        r20 = r5;
        r5 = 1;
        r21 = 0;
        if (r0 != 0) goto L_0x0072;
    L_0x006c:
        r9 = r1;
        r24 = r11;
    L_0x006f:
        r0 = 0;
        goto L_0x0136;
    L_0x0072:
        r0 = r0.getClass();	 Catch:{ all -> 0x0105 }
        r22 = r1;
        r1 = new java.lang.Class[r5];	 Catch:{ all -> 0x0103 }
        r23 = java.lang.reflect.Field.class;
        r1[r21] = r23;	 Catch:{ all -> 0x0103 }
        r0.getMethod(r3, r1);	 Catch:{ all -> 0x0103 }
        r1 = 2;
        r5 = new java.lang.Class[r1];	 Catch:{ all -> 0x0103 }
        r5[r21] = r7;	 Catch:{ all -> 0x0103 }
        r1 = 1;
        r5[r1] = r8;	 Catch:{ all -> 0x0103 }
        r0.getMethod(r4, r5);	 Catch:{ all -> 0x0103 }
        r1 = s();	 Catch:{ all -> 0x0103 }
        if (r1 != 0) goto L_0x0097;
    L_0x0092:
        r24 = r11;
        r9 = r22;
        goto L_0x006f;
    L_0x0097:
        r1 = c.e.a.b.e.c.q3.a();	 Catch:{ all -> 0x0103 }
        if (r1 == 0) goto L_0x00a4;
    L_0x009d:
        r24 = r11;
    L_0x009f:
        r9 = r22;
        r0 = 1;
        goto L_0x0136;
    L_0x00a4:
        r1 = 1;
        r5 = new java.lang.Class[r1];	 Catch:{ all -> 0x0103 }
        r5[r21] = r8;	 Catch:{ all -> 0x0103 }
        r0.getMethod(r11, r5);	 Catch:{ all -> 0x0103 }
        r1 = 2;
        r5 = new java.lang.Class[r1];	 Catch:{ all -> 0x0103 }
        r5[r21] = r8;	 Catch:{ all -> 0x0103 }
        r1 = java.lang.Byte.TYPE;	 Catch:{ all -> 0x0103 }
        r24 = r11;
        r11 = 1;
        r5[r11] = r1;	 Catch:{ all -> 0x0101 }
        r0.getMethod(r15, r5);	 Catch:{ all -> 0x0101 }
        r1 = new java.lang.Class[r11];	 Catch:{ all -> 0x0101 }
        r1[r21] = r8;	 Catch:{ all -> 0x0101 }
        r0.getMethod(r14, r1);	 Catch:{ all -> 0x0101 }
        r1 = 2;
        r5 = new java.lang.Class[r1];	 Catch:{ all -> 0x0101 }
        r5[r21] = r8;	 Catch:{ all -> 0x0101 }
        r1 = 1;
        r5[r1] = r10;	 Catch:{ all -> 0x0101 }
        r0.getMethod(r13, r5);	 Catch:{ all -> 0x0101 }
        r5 = new java.lang.Class[r1];	 Catch:{ all -> 0x0101 }
        r5[r21] = r8;	 Catch:{ all -> 0x0101 }
        r0.getMethod(r4, r5);	 Catch:{ all -> 0x0101 }
        r1 = 2;
        r5 = new java.lang.Class[r1];	 Catch:{ all -> 0x0101 }
        r5[r21] = r8;	 Catch:{ all -> 0x0101 }
        r1 = 1;
        r5[r1] = r8;	 Catch:{ all -> 0x0101 }
        r0.getMethod(r12, r5);	 Catch:{ all -> 0x0101 }
        r5 = 3;
        r10 = new java.lang.Class[r5];	 Catch:{ all -> 0x0101 }
        r10[r21] = r8;	 Catch:{ all -> 0x0101 }
        r10[r1] = r8;	 Catch:{ all -> 0x0101 }
        r1 = 2;
        r10[r1] = r8;	 Catch:{ all -> 0x0101 }
        r0.getMethod(r9, r10);	 Catch:{ all -> 0x0101 }
        r1 = 5;
        r1 = new java.lang.Class[r1];	 Catch:{ all -> 0x0101 }
        r1[r21] = r7;	 Catch:{ all -> 0x0101 }
        r5 = 1;
        r1[r5] = r8;	 Catch:{ all -> 0x0101 }
        r5 = 2;
        r1[r5] = r7;	 Catch:{ all -> 0x0101 }
        r5 = 3;
        r1[r5] = r8;	 Catch:{ all -> 0x0101 }
        r5 = 4;
        r1[r5] = r8;	 Catch:{ all -> 0x0101 }
        r0.getMethod(r9, r1);	 Catch:{ all -> 0x0101 }
        goto L_0x009f;
    L_0x0101:
        r0 = move-exception;
        goto L_0x010a;
    L_0x0103:
        r0 = move-exception;
        goto L_0x0108;
    L_0x0105:
        r0 = move-exception;
        r22 = r1;
    L_0x0108:
        r24 = r11;
    L_0x010a:
        r1 = r6.getName();
        r1 = java.util.logging.Logger.getLogger(r1);
        r5 = java.util.logging.Level.WARNING;
        r0 = java.lang.String.valueOf(r0);
        r8 = r0.length();
        r8 = r8 + 71;
        r9 = new java.lang.StringBuilder;
        r9.<init>(r8);
        r9.append(r2);
        r9.append(r0);
        r0 = r9.toString();
        r8 = "supportsUnsafeByteBufferOperations";
        r9 = r22;
        r1.logp(r5, r9, r8, r0);
        goto L_0x006f;
    L_0x0136:
        f = r0;
        r0 = a;
        if (r0 != 0) goto L_0x0140;
    L_0x013c:
        r1 = 0;
    L_0x013d:
        r5 = 1;
        goto L_0x025b;
    L_0x0140:
        r0 = r0.getClass();	 Catch:{ all -> 0x0230 }
        r1 = 1;
        r5 = new java.lang.Class[r1];	 Catch:{ all -> 0x0230 }
        r8 = java.lang.reflect.Field.class;
        r5[r21] = r8;	 Catch:{ all -> 0x0230 }
        r0.getMethod(r3, r5);	 Catch:{ all -> 0x0230 }
        r3 = "arrayBaseOffset";
        r5 = new java.lang.Class[r1];	 Catch:{ all -> 0x0230 }
        r8 = java.lang.Class.class;
        r5[r21] = r8;	 Catch:{ all -> 0x0230 }
        r0.getMethod(r3, r5);	 Catch:{ all -> 0x0230 }
        r3 = "arrayIndexScale";
        r5 = new java.lang.Class[r1];	 Catch:{ all -> 0x0230 }
        r1 = java.lang.Class.class;
        r5[r21] = r1;	 Catch:{ all -> 0x0230 }
        r0.getMethod(r3, r5);	 Catch:{ all -> 0x0230 }
        r1 = 2;
        r3 = new java.lang.Class[r1];	 Catch:{ all -> 0x0230 }
        r3[r21] = r7;	 Catch:{ all -> 0x0230 }
        r1 = java.lang.Long.TYPE;	 Catch:{ all -> 0x0230 }
        r5 = 1;
        r3[r5] = r1;	 Catch:{ all -> 0x022e }
        r0.getMethod(r14, r3);	 Catch:{ all -> 0x022e }
        r3 = 3;
        r8 = new java.lang.Class[r3];	 Catch:{ all -> 0x022e }
        r8[r21] = r7;	 Catch:{ all -> 0x022e }
        r8[r5] = r1;	 Catch:{ all -> 0x022e }
        r3 = java.lang.Integer.TYPE;	 Catch:{ all -> 0x0230 }
        r5 = 2;
        r8[r5] = r3;	 Catch:{ all -> 0x0230 }
        r0.getMethod(r13, r8);	 Catch:{ all -> 0x0230 }
        r3 = new java.lang.Class[r5];	 Catch:{ all -> 0x0230 }
        r3[r21] = r7;	 Catch:{ all -> 0x0230 }
        r5 = 1;
        r3[r5] = r1;	 Catch:{ all -> 0x022e }
        r0.getMethod(r4, r3);	 Catch:{ all -> 0x022e }
        r3 = 3;
        r4 = new java.lang.Class[r3];	 Catch:{ all -> 0x022e }
        r4[r21] = r7;	 Catch:{ all -> 0x022e }
        r4[r5] = r1;	 Catch:{ all -> 0x022e }
        r3 = 2;
        r4[r3] = r1;	 Catch:{ all -> 0x0230 }
        r0.getMethod(r12, r4);	 Catch:{ all -> 0x0230 }
        r4 = "getObject";
        r5 = new java.lang.Class[r3];	 Catch:{ all -> 0x0230 }
        r5[r21] = r7;	 Catch:{ all -> 0x0230 }
        r3 = 1;
        r5[r3] = r1;	 Catch:{ all -> 0x0230 }
        r0.getMethod(r4, r5);	 Catch:{ all -> 0x0230 }
        r4 = "putObject";
        r5 = 3;
        r8 = new java.lang.Class[r5];	 Catch:{ all -> 0x0230 }
        r8[r21] = r7;	 Catch:{ all -> 0x0230 }
        r8[r3] = r1;	 Catch:{ all -> 0x0230 }
        r3 = 2;
        r8[r3] = r7;	 Catch:{ all -> 0x0230 }
        r0.getMethod(r4, r8);	 Catch:{ all -> 0x0230 }
        r4 = c.e.a.b.e.c.q3.a();	 Catch:{ all -> 0x0230 }
        if (r4 == 0) goto L_0x01ba;
    L_0x01b8:
        r1 = 1;
        goto L_0x013d;
    L_0x01ba:
        r4 = new java.lang.Class[r3];	 Catch:{ all -> 0x0230 }
        r4[r21] = r7;	 Catch:{ all -> 0x0230 }
        r3 = 1;
        r4[r3] = r1;	 Catch:{ all -> 0x0230 }
        r5 = r24;
        r0.getMethod(r5, r4);	 Catch:{ all -> 0x0230 }
        r4 = 3;
        r5 = new java.lang.Class[r4];	 Catch:{ all -> 0x0230 }
        r5[r21] = r7;	 Catch:{ all -> 0x0230 }
        r5[r3] = r1;	 Catch:{ all -> 0x0230 }
        r3 = java.lang.Byte.TYPE;	 Catch:{ all -> 0x0230 }
        r4 = 2;
        r5[r4] = r3;	 Catch:{ all -> 0x0230 }
        r0.getMethod(r15, r5);	 Catch:{ all -> 0x0230 }
        r3 = "getBoolean";
        r5 = new java.lang.Class[r4];	 Catch:{ all -> 0x0230 }
        r5[r21] = r7;	 Catch:{ all -> 0x0230 }
        r4 = 1;
        r5[r4] = r1;	 Catch:{ all -> 0x0230 }
        r0.getMethod(r3, r5);	 Catch:{ all -> 0x0230 }
        r3 = "putBoolean";
        r5 = 3;
        r8 = new java.lang.Class[r5];	 Catch:{ all -> 0x0230 }
        r8[r21] = r7;	 Catch:{ all -> 0x0230 }
        r8[r4] = r1;	 Catch:{ all -> 0x0230 }
        r4 = java.lang.Boolean.TYPE;	 Catch:{ all -> 0x0230 }
        r5 = 2;
        r8[r5] = r4;	 Catch:{ all -> 0x0230 }
        r0.getMethod(r3, r8);	 Catch:{ all -> 0x0230 }
        r3 = "getFloat";
        r4 = new java.lang.Class[r5];	 Catch:{ all -> 0x0230 }
        r4[r21] = r7;	 Catch:{ all -> 0x0230 }
        r5 = 1;
        r4[r5] = r1;	 Catch:{ all -> 0x022e }
        r0.getMethod(r3, r4);	 Catch:{ all -> 0x022e }
        r3 = "putFloat";
        r4 = 3;
        r8 = new java.lang.Class[r4];	 Catch:{ all -> 0x022e }
        r8[r21] = r7;	 Catch:{ all -> 0x022e }
        r8[r5] = r1;	 Catch:{ all -> 0x022e }
        r4 = java.lang.Float.TYPE;	 Catch:{ all -> 0x0230 }
        r5 = 2;
        r8[r5] = r4;	 Catch:{ all -> 0x0230 }
        r0.getMethod(r3, r8);	 Catch:{ all -> 0x0230 }
        r3 = "getDouble";
        r4 = new java.lang.Class[r5];	 Catch:{ all -> 0x0230 }
        r4[r21] = r7;	 Catch:{ all -> 0x0230 }
        r5 = 1;
        r4[r5] = r1;	 Catch:{ all -> 0x022e }
        r0.getMethod(r3, r4);	 Catch:{ all -> 0x022e }
        r3 = "putDouble";
        r4 = 3;
        r4 = new java.lang.Class[r4];	 Catch:{ all -> 0x022e }
        r4[r21] = r7;	 Catch:{ all -> 0x022e }
        r4[r5] = r1;	 Catch:{ all -> 0x022e }
        r1 = java.lang.Double.TYPE;	 Catch:{ all -> 0x022e }
        r7 = 2;
        r4[r7] = r1;	 Catch:{ all -> 0x022e }
        r0.getMethod(r3, r4);	 Catch:{ all -> 0x022e }
        r1 = 1;
        goto L_0x025b;
    L_0x022e:
        r0 = move-exception;
        goto L_0x0232;
    L_0x0230:
        r0 = move-exception;
        r5 = 1;
    L_0x0232:
        r1 = r6.getName();
        r1 = java.util.logging.Logger.getLogger(r1);
        r3 = java.util.logging.Level.WARNING;
        r0 = java.lang.String.valueOf(r0);
        r4 = r0.length();
        r4 = r4 + 71;
        r6 = new java.lang.StringBuilder;
        r6.<init>(r4);
        r6.append(r2);
        r6.append(r0);
        r0 = r6.toString();
        r2 = "supportsUnsafeArrayOperations";
        r1.logp(r3, r9, r2, r0);
        r1 = 0;
    L_0x025b:
        g = r1;
        r0 = byte[].class;
        r0 = h(r0);
        r0 = (long) r0;
        h = r0;
        h(r20);
        j(r20);
        h(r19);
        j(r19);
        h(r18);
        j(r18);
        h(r17);
        j(r17);
        h(r16);
        j(r16);
        r0 = java.lang.Object[].class;
        h(r0);
        r0 = java.lang.Object[].class;
        j(r0);
        r0 = s();
        if (r0 == 0) goto L_0x029e;
    L_0x0294:
        r1 = e;
        if (r1 != 0) goto L_0x0299;
    L_0x0298:
        goto L_0x029e;
    L_0x0299:
        r1 = r1.a;
        r1.objectFieldOffset(r0);
    L_0x029e:
        r0 = java.nio.ByteOrder.nativeOrder();
        r1 = java.nio.ByteOrder.BIG_ENDIAN;
        if (r0 != r1) goto L_0x02a7;
    L_0x02a6:
        goto L_0x02a8;
    L_0x02a7:
        r5 = 0;
    L_0x02a8:
        i = r5;
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.e.c.l7.m1316clinit():void");
    }

    public static byte a(byte[] bArr, long j) {
        return e.a(bArr, h + j);
    }

    public static int b(Object obj, long j) {
        return e.k(obj, j);
    }

    public static <T> T c(Class<T> cls) {
        try {
            return a.allocateInstance(cls);
        } catch (InstantiationException e) {
            throw new IllegalStateException(e);
        }
    }

    public static void d(Object obj, long j, double d) {
        e.c(obj, j, d);
    }

    public static void e(Object obj, long j, long j2) {
        e.f(obj, j, j2);
    }

    public static void f(Object obj, long j, Object obj2) {
        e.a.putObject(obj, j, obj2);
    }

    public static void g(byte[] bArr, long j, byte b) {
        e.b(bArr, h + j, b);
    }

    public static int h(Class<?> cls) {
        return g ? e.a.arrayBaseOffset(cls) : -1;
    }

    public static long i(Object obj, long j) {
        return e.l(obj, j);
    }

    public static int j(Class<?> cls) {
        return g ? e.a.arrayIndexScale(cls) : -1;
    }

    public static Unsafe k() {
        try {
            return (Unsafe) AccessController.doPrivileged(new k7());
        } catch (Throwable unused) {
            return null;
        }
    }

    public static void l(Object obj, long j, byte b) {
        long j2 = -4 & j;
        int i = ((~((int) j)) & 3) << 3;
        i = (ISdkLite.REGION_UNSET & b) << i;
        e.e(obj, j2, i | (b(obj, j2) & (~(ISdkLite.REGION_UNSET << i))));
    }

    public static boolean m(Object obj, long j) {
        return e.h(obj, j);
    }

    public static float n(Object obj, long j) {
        return e.i(obj, j);
    }

    public static void o(Object obj, long j, byte b) {
        long j2 = -4 & j;
        int i = (((int) j) & 3) << 3;
        e.e(obj, j2, ((ISdkLite.REGION_UNSET & b) << i) | (b(obj, j2) & (~(ISdkLite.REGION_UNSET << i))));
    }

    public static boolean p(Class<?> cls) {
        Class cls2 = byte[].class;
        if (!q3.a()) {
            return false;
        }
        try {
            Class cls3 = b;
            Class[] clsArr = new Class[2];
            clsArr[0] = cls;
            Class cls4 = Boolean.TYPE;
            clsArr[1] = cls4;
            cls3.getMethod("peekLong", clsArr);
            cls3.getMethod("pokeLong", new Class[]{cls, Long.TYPE, cls4});
            r8 = new Class[3];
            r8[1] = Integer.TYPE;
            r8[2] = cls4;
            cls3.getMethod("pokeInt", r8);
            cls3.getMethod("peekInt", new Class[]{cls, cls4});
            cls3.getMethod("pokeByte", new Class[]{cls, Byte.TYPE});
            cls3.getMethod("peekByte", new Class[]{cls});
            cls3.getMethod("pokeByteArray", new Class[]{cls, cls2, r9, r9});
            cls3.getMethod("peekByteArray", new Class[]{cls, cls2, r9, r9});
            return true;
        } catch (Throwable unused) {
            return false;
        }
    }

    public static double q(Object obj, long j) {
        return e.j(obj, j);
    }

    public static Object r(Object obj, long j) {
        return e.a.getObject(obj, j);
    }

    public static Field s() {
        Field declaredField;
        if (q3.a()) {
            try {
                declaredField = Buffer.class.getDeclaredField("effectiveDirectAddress");
            } catch (Throwable unused) {
                declaredField = null;
            }
            if (declaredField != null) {
                return declaredField;
            }
        }
        try {
            declaredField = Buffer.class.getDeclaredField("address");
        } catch (Throwable unused2) {
            declaredField = null;
        }
        if (declaredField == null || declaredField.getType() != Long.TYPE) {
            return null;
        }
        return declaredField;
    }

    public static byte t(Object obj, long j) {
        return (byte) (b(obj, -4 & j) >>> ((int) (((~j) & 3) << 3)));
    }

    public static byte u(Object obj, long j) {
        return (byte) (b(obj, -4 & j) >>> ((int) ((j & 3) << 3)));
    }
}
